package com.qys.livesMall.app.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户权限控制
 * </p>
 *
 * @author
 * @since 2023-07-31
 */
@Getter
@Setter
@TableName("h2_limit")
@Schema(name = "Limit", description = "用户权限控制")
public class Limit implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户权限控制ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户权限接口配置ID")
    private Long limitUrlId;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "禁用类型")
    private Byte type;

    @Schema(description = "状态 1：正常  2：禁用")
    private Byte status;
}
